package com.duolebo.uteped_sdk.ota;

import com.yc.nadalsdk.ble.open.DeviceModeJX;

public abstract class BaseOemOta implements IOemOta {

    public static final int OTA_TYPE_ACTS = 10;
    public static final int OTA_TYPE_JL = 11;
    public static final int OTA_TYPE_DEFAULT = OTA_TYPE_ACTS;

    public static int getOtaType() {
        if (DeviceModeJX.isHasFunction_7(DeviceModeJX.IS_PLATFORM_JLAC701)) {
            return OTA_TYPE_JL;
        }

        if (DeviceModeJX.isHasFunction_7(DeviceModeJX.IS_PLATFORM_JXATS3085L)) {
            return OTA_TYPE_ACTS;
        }

        return OTA_TYPE_DEFAULT;
    }

    public boolean isJieLi() {
        return getOtaType() == OTA_TYPE_JL;
    }
}
